Spectroscopic and photochemical study of diaminomaleonitrile and diaminofumaronitrile