Mechanism for switchability in electron-doped ferroelectric interfaces