Probing interlayer shear thermal deformation in atomically-thin van der Waals layered materials