Effects of ventilation on the indoor spread of COVID-19