Analysis of a magnetic field sensor based on photonic crystal fiber selectively infiltrated with magnetic fluids