A technique for measuring an adsorption-induced deformation