A contagious disease model for researching and intervening in heroin epidemics.