Optical phonons in quantum-wire structures