Molecular dynamics simulation of amplitude modulation atomic force microscopy