A proficient approach to forecast COVID-19 spread via optimized dynamic machine learning models