Evolution of magnetic anisotropy and thermal stability during nanocrystal-chain growth