Thermal analysis of metal organic precursors for functional oxide preparation: thin films versus powders