Analysis Of The Shifted Boundary Method For The Poisson Problem In Domains With Corners