Thermocline tracking based on peak-gradient detection by an autonomous underwater vehicle