Atomic force microscopy for the study of tribology and adhesion