Effects of partial hydrogenation and vacancy defects on the electronic properties of metallic carbon nanotubes