Application of a continuous and selective water detector in thermoanalytical investigations