On the solution of the radiative transfer equations for polarized radiation