Radiative energy transfer in extended photospheres of the components of close binary systems