Friction Dynamics: Principles and Applications