Third and fourth virial coefficients of hard hyperspheres of arbitrary dimensionality