Thermal microstrains measured by atomic force microscopy