Measurement of pressure and displacement by using the optical fiber grating sensor based on the C-shaped elastic tube