Entanglement entropies in free fermion gases for arbitrary dimension