Comprehensive upgrade of the high-resolution small-angle neutron scattering instrument KWS-3 at FRM II