Measurement of D0-D0 mixing parameters and search for CP violation using D0 K+ pi- decays