Elimination of unoccupied-state summations in ab initio self-energy calculations for large supercells