Polarization changes of pulsars due to wave propagation through magnetospheres