Quantitatively assessing early detection strategies for mitigating COVID-19 and future pandemics