Evaluation of a fiber-optic sensor for strain measurement and an application to contact mechanics