Crystal structure, optical and magnetic properties of the bis(perchlorate) of 3,4-diaminopyridine