Bridging the Gap Between the Atomic-Scale and Macroscopic Modeling of Friction