Resource-efficient quantum simulation of lattice gauge theories in arbitrary dimensions: Solving for Gauss's law and fermion elimination