Magnetic field and temperature sensor based on D-shaped photonic crystal fiber