Polarized radiative transfer in complex media exposed to external irradiation