Molecular dynamics simulation and energy minimization of O2 adsorbed on a graphite surface