Basics of radiative transfer