Statistical mechanical calculation of surface properties of simple liquids. IV. Molecular dynamics