On the application of the Carnahan–Starling method for hard hyperspheres in several dimensions