Effect of hydrogenation on the spectra of electronic and vibrational transitions in single-walled carbon nanotubes