A new representation of potential energy curves for diatomic molecules