Localization of the large-angle foil-scattering beam loss caused by the multiturn charge-exchange injection