Measurement of CP asymmetries for the decays $B^\pm \to D^0_{CP} K^{*\pm}