Measurement of the CP asymmetry in B − → Ds− D 0 and B − → D − D 0 decays