Novel technique for measuring the residual stress and the strain-optic coefficient profile of an optical fiber