Energy dissipation in scanning force microscopy-friction on an atomic scale