Thermal decomposition of oxalates