The determination of oxygen and trivalent copper content in Y-Ba-Cu-O superconductors