how to make money while doing a phd