Text this: Multi-agent distributed control of integrated process networks using an adaptive community detection approach