Sex differences in disease avoidance behavior vary across modes of pathogen exposure