Field enhancement factors and self-focus functions manifesting in field emission resonances in scanning tunneling microscopy