A Petri Net approach to consensus in networks with joint-agent interactions