Simultaneous evolution of host resistance and tolerance to parasitism