Magnetophonon resonances in quantum wires