thermocline and halocline formation