A modelling approach for MOF-encapsulated metal catalysts and application to n-butane oxidation.