Pyrolysis study of solution-derived superconducting YBa2Cu3O7 films: disentangling the physico-chemical transformations