Atomistic simulations of atomic force microscopy