H-Theorem and Boundary Conditions for Two-Temperature Model: Application to Wave Propagation and Heat Transfer in Polyatomic Gases