Atomic force microscopy and friction force microscopy studies of ferroelastic crystal surfaces