Three-dimensional dense distributed temperature sensing for measuring layered thermohaline systems