Michael Mosley looks at how doctors came to understand infectious diseases by deliberately infecting themselves with conditions such syphilis and yellow fever.