do you need a master's to do a PhD