Two-temperature Navier-Stokes equations for a polyatomic gas derived from kinetic theory