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