New approach to numerical treatment of scanning tunneling microscopy