Protection of three-phase motors