Calculation of the Stresses and Strains in Embedded Fiber Optic Sensors