Morse potential derived from first principles