Global and local analysis of the gas-phase acidity of haloacetic acids