Evolutionary rescue: linking theory for conservation and medicine