Scanning tunneling microscope and electron beam induced luminescence in quantum wires