Two-dimensional numerical simulation of the photon scanning tunneling microscope. Concept of transfer function