Measurement of electron capture and ionization cross sections for D2 in collision with fast O8+ ions.