The role of topography and friction for the image contrast in lateral force microscopy