Rare earth ion– and transition metal ion–doped inorganic luminescent nanocrystals: from fundamentals to biodetection