Susceptible-infected-susceptible epidemics on networks with general infection and cure times.