Crystallographic anisotropies in carbon formation and removal on nickel in CO and H2 atmospheres