Phonons and spin waves in the magnetic semiconductor chalcopyrite, CuFeS2