How are quarantines used to slow the spread of an epidemic?