Structures, binding energies, and thermodynamic functions of NH4+, NH3•+, and their H2O complexes