Hydrodynamic limits of kinetic equations for polyatomic gases