Ocean gyres driven by surface buoyancy forcing