Encapsulated iron, cobalt and nickel nanocrystals; Effect of coating material (Mg, MgF2) on magnetic properties