Thermal decomposition of [Mg(NH3)6](NO3)2, [Ni(NH3)6](NO3)2 and [Ni(ND3)6](NO3)2