Evidence of switching and rectification by a single molecule effected with a scanning tunneling microscope