Coupling between ionic defect structure and electronic conduction in passive films on iron, chromium and iron-chromium alloys