The Boundary Layer Method In Diffraction Problems