Atomic wires nanotube and their interaction with the semiconducting substrates A density fuctional study