Nonlinear Optimal Control of Electron Dynamics Within Hartree-Fock Theory