Simulating open quantum systems with giant atoms