Development and applications of differentiable coherent optical transition radiation simulations | Synapse