Substitution spectra of SARS-CoV-2 genome reveals insights into the evolution of variants across the pandemic