Inclusive and semi-inclusive production of positive pions and protons in pp interactions at 22.4 GeV/c