Work functions and surface charges at metallic facet edges