Thin-Shell Wormholes in Einstein and Einstein–Gauss–Bonnet Theories of Gravity