Measuring wall stresses in the borehole