A lanthanide nanocomposite with cross-relaxation enhanced near-infrared emissions as a ratiometric nanothermometer.