Radiative heating and cooling rates in the middle atmosphere