Solution of radiative heat transfer in graded index media by least square spectral element method