Title: The influence of edges and corners on potential functions of surface layers