Measurement of polarization effects in optical fibers and components