IR Spectra and dipole moment function of the H2S molecule in the gas and liquid phases