Representation of potential energy curves for diatomic molecules