A Generalized Mechanistic Model for Assessing and Forecasting the Spread of the COVID-19 Pandemic