Magnetic excitations and phonons in the spin-chain compound NaCu2O2