Oxygen content and thermodynamics of formation of double perovskites REBaCo2O6−δ (RE = Gd, Pr)