Inverse scattering from phaseless measurement of the total field on closed curves