Determination of total rotation of polarization axes in polarization-maintaining fibers