Dynamic model atmospheres of AGB stars - III. Effects of frequency-dependent radiative transfer