Generalized z-scaling in proton-proton collisions at high energies