Nonlinear optimal control policies for buoyancy-driven flows in the built environment