Measurement of CP-violating asymmetries in B-0 decays to CP eigenstates