Rosetta photoelectron emission and solar ultraviolet flux at comet 67P