Thermodynamics of the formation of sulfuric acid dimers in the binary (H<inf>2</inf>SO<inf>4</inf>-H<inf>2</inf>O) and ternary (H<inf>2</inf>SO<inf>4</inf>-H<inf>2</inf>O-NH<inf>3</inf>) system