Effective work functions for ionic and electronic emissions from mono- and polycrystalline surfaces