Multifrequency-gray method for radiation diffusion with Compton scattering