How to survive your terrible coworkers, according to a Stanford professor