Space charge effect and mirror charge effect in photoemission spectroscopy