Extended Wagner-type models and their application to the prediction of the transition from internal to external oxidation