Structural and spectroscopic investigation of an anilinosalen cobalt complex with relevance to hydrogen production.