A doctor who repeatedly used racist and misogynistic language to colleagues has been struck off.