Two-electron Rabi oscillations in real-time time-dependent density-functional theory