Study: Long intern shifts pose safety risks