Simultaneous synthesis and amine-functionalization of single-phase BaYF5:Yb/Er nanoprobe for dual-modal in vivo upconversion fluorescence and long-lasting X-ray computed tomography imaging.