Numerical simulation of the geometrical factors affecting surface roughness measurements by AFM