Kondo effect in a magnetic field and the magnetoresistivity of kondo alloys