Measurement of CP asymmetries in the decays B 0 → K *0 μ + μ − and B + → K + μ + μ −