A New Optimum Signal Compression Algorithm Based on Neural Networks for WSN