Molecular mechanism of virus attenuation by codon pair deoptimization