A technique for the measurement of the residual birefringence in erbium-doped fibers