Resonant ion-pair formation in electron collisions with HD+ and OH+