Bose-Einstein condensation from a rotating thermal cloud: Vortex nucleation and lattice formation