QAAR: An Application-Adaptive Routing Protocol Based on Q-Learning in Underwater Sensor Networks