Hybrid nanoelectronic-magnetic device with magnetoresistive core–shell Fe/FeC nanoparticles