Eliminating the surface location from soft matter contact mechanics measurements