A mechanism for exchange and substitution reactions in platinum(IV) complexes