Ion adsorption in the porous sol–gel silica layer in the fibre optic pH sensor