Electrocatalytic activity, phase kinetics, spectroscopic advancements, and photocorrosion behaviour in tantalum nitride phases