Catalytic hydrogenation of aromatic nitriles and dinitriles with nickel compounds