Host resistance and tolerance of parasitic gut worms depend on resource availability