The hydration of formic acid and acetic acid