Dirichlet to Neumann map for domains with corners and approximate boundary conditions