Oxygen isotope exchange in doped calcium and barium zirconates