Contrastive studies of potential energy functions of some diatomic molecules