Perpendicular magnetization of long iron carbide nanowires inside carbon nanotubes due to magnetocrystalline anisotropy