On the Born-Oppenheimer approximation of diatomic molecular resonances