P-N approximation for radiative heat transfer in a nongray medium