Closed Time-Domain Solutions for 1D Scattering and Inverse Scattering in Anisotropic Medium