Thermal decomposition of metal complexes