Scattering theory and correlation functions in statistical models with a line of defect