An inverse time domain problem for a stratified, biperiodic and 2D medium using an optimization method