Added Pythia8 status code for intermediate resonances to the GenJets particle selector

Backport of #3272