The ground-state energy of bulk matter in a quantum thermodynamic perturbation theory