The diagonal born-oppenheimer correction for He2+ and F+H2