Optical phonons in copper oxides with a single CuO2 plane