Microscopic view of scanning tunneling microscopy