A Trust-based Team Formation Framework for Mobile Intelligence in Smart Factories