Facile preparation of rare-earth semiconductor nanocrystals and tuning of their dimensionalities