The wavelength dependence of polarization of active galaxies and quasars