Beam effects, surface topography, and depth profiling in surface analysis