Unified Stochastic SIR Model with Parameter Estimation and Application to the COVID-19 Pandemic