Immunity to gastrointestinal nematode infections