Resonant dissociative recombination of diatomic cations