Fiber bragg grating sensors for pH and humidity measurement