In-fiber Fabry-Perot interferometer for strain and magnetic field sensing