Statistical–mechanical calculations of thermal properties of diatomic