An Irreversible Thermodynamics Theory for Friction and Wear