Analysis of 1 GeV proton scattering on D and 4He in a non-eikonal approach