Molecular dynamics simulation of AFM studies of a single polymer chain