Mechanical and electronic manipulation of nanometer-sized wires