How to measure work functions from aqueous solutions