Ray tracing methods for inverse problems