Forecasting the end time of global COVID-19 infection with the effects of adaptive behaviors and vaccination