Inverse scattering from phaseless measurements of the total field on open lines