A Differentiable Interferometer Simulator for the Compuational Design of Gravitational Wave Detectors