Effect of ion-exchange on structural, electronic, and vibrational properties of the-O-Ti-O-Ti-O-quantum wires in ETS-10