Solution of radiative transfer problems in planetary atmospheres