Multilayer optics as an analog computer for testing special relativity