Direct measurement of forces during scanning tunneling microscope imaging of graphite