Gravar-mail: Optimal strategies for social distancing and testing to control COVID-19