Elements of friction theory and nanotribology