Anisotropic magnetoresistance and giant magnetoimpedance effects in soft magnetic fibers