Colorimetric and ratiometric fluorescence sensing of fluoride ions based on competitive intra- and intermolecular proton transfer