Fermat principle in arbitrary gravitational fields | Synapse