Nanofabrication and rapid imaging with a scanning tunneling microscope