Optimizing contact tracing policies to intervene in the spread of COVID-19 in San Francisco, CA