An Optimized Data Fusion Paradigm for WSN Based on Neural Networks