Secondary particle spectra in hadron-hadron and hadron-nucleus collisions in the framework of the additive quark model and quark statistics