Simultaneous strain and temperature measurement with long-period gratings