The VIMOS Ultra Deep Survey: Lyα emission and stellar populations of star-forming galaxies at 2 < z < 2.5