Luminescent properties of doped dielectric nanocrystals