Distributed architectures for production planning and control in discrete manufacturing