Phononic and magnetic excitations in the quasi-one-dimensional Heisenberg antiferromagnet KCuF3