Contact mechanics and friction of fractal surfaces probed by atomic force microscopy