Optimal allocation of face masks during the COVID-19 pandemic: a case study of the first epidemic wave in the United States