Instantaneous reproduction number and epidemic growth rate for predicting COVID-19 waves: the first 2 years of the pandemic in Spain