Interaction of optical phonons with electrons in GaAs quantum wires