Optimal Weight Design for Decentralized Consensus-Based Large-Scale Data Analytics over Internet of Things