An introduction to direct and inverse scattering theory