Molecular Mechanical Theory of Friction