The mechanics of the tribology of thin film systems