Dispersion relation of a rarefied polyatomic gas with molecular relaxation processes based on extended thermodynamics