The role of shear forces in scanning force microscopy: a comparison between the jumping mode and tapping mode