Detection of phonons with a scanning tunneling microscope