Noise reduction technique for scanning tunneling microscopy