Advances in the embedded-strain-gage technique with an application to contact problems