Magnetic properties of carbon-encapsulated Fe–Ni alloy nanocomposites