When does pathogen evolution maximize the basic reproductive number in well-mixed host–pathogen systems?