Developing Luminescent Ratiometric Thermometers Based on a Covalent Organic Framework (COF).