On the relationship between chemical expansion and hydration thermodynamics of proton conducting perovskites