Integrated framework for constrained optimization of well placement and control in subsurface operations