Ab initio thermodynamic studies of stability and proton conductivity in undoped and yttrium doped barium zirconate