Grad school can be worth it if you pick wisely: study