Measurement of mixing and CP violation parameters in two-body charm decays