In situ determination of the water condensation mechanisms on superhydrophobic and superhydrophilic titanium dioxide nanotubes