Radiative transfer of infrared radiation in model clouds