Magnetic field sensor based on twisted fiber and magnetic fluid