Electrocatalytic and photocatalytic activity of a nickel (II) quinacridone complex