Molecular Dynamics Simulation of Energy Dissipation Process in Atomic-Scale Stick-Slip Phenomenon