Incorporation of water-soluble porphyrins in sol–gel matrices and application to pH sensing