Sol–gel based thermally stable mesoporous TiO2 nanomatrix for fiber optic pH sensing