Kinetics and thermodynamics of thermal dehydration of magnesium oxalate dihydrate