Wireless Sensor Networks (WSNs) with emphasis on the development of control algorithms for improvement of their dynamic behavior