A comparison of internal energy calculation methods for diatomic molecules