Phase recovery in the interferometric fiber-optic sensors