Measurement of beat length in polarization-maintaining fibers with external forces method