Effectiveness of Localized Lockdowns in the COVID-19 Pandemic