Covalent immobilization of a fluorescent pH-sensitive naphthalimide dye in sol–gel films