Precise measurement of the charge-distribution differences of the oxygen isotopes