A phenazine-barbituric acid based colorimetric and ratiometric near-infrared fluorescent probe for sensitively differentiating biothiols and its application in TiO2 sensor devices.