A theoretical model for the Inverse Scanning Tunneling Optical Microscope (ISTOM)