Radiative properties of lanthanide and transition metal ions in nanocrystals