The role of photoemission in the coupling of the Mercury surface and magnetosphere