New approach to the strain analysis of bragg grating sensors