Applications of scanning tunneling microscopy to solid state physics