The molecular dynamics simulation of boundary-layer lubrication