Evolution of host resistance to parasite infection in the snail–schistosome–human system