Least-squares finite-element methods for optimization and control problems for the stokes equations