how much time to write phd thesis