Electron emission contributions to dark current and its relation to microscopic field enhancement and heating in accelerator structures