Simulating quantum effects of cosmological expansion using a static ion trap