A first-principles study of the electronic properties of silicon quantum wires