Hydrogen separation using proton-conducting perovskites