Simulation of atomic force microscope tip–sample/sample–tip reconstruction