On Optimizing Collaborative Manufacturing Processes in Virtual Factories