A dynamic approach to selectivity in heterogeneous partial oxidation