Equation of state for fluids of spherical particles in d dimensions