MM-DCPR: Dual Controller Optimization for Distributed Control and Energy-Efficient Routing in SDWSNs