Hyperbolicity of first and second order extended thermodynamics theory of polyatomic rarefied gases