Nonlinear Optimal Control of Electron Dynamics within Hartree-Fock Theory