Molecular dynamics simulations of atomic scale processes at close approach in non-contact atomic force microscopy