Partial transparency of nuclei and universal properties of proton spectra in relativistic proton-nucleus and nucleus-nucleus collisions