Unraveling the defect chemistry and proton uptake of yttrium-doped barium zirconate