In-plane deformation of cantilever plates with applications to lateral force microscopy