Electronic and optical properties of silicon quantum wires at different passivation regimes