Integrated physics optimization of a quasi-isodynamic stellarator with poloidally closed contours of the magnetic field strength