Generation and functional analysis of defective viral genomes during SARS-CoV-2 infection