The development of internal structure during thermal decomposition: Nickel formate dihydrate