Effects of various defects on the electronic properties of single-walled carbon nanotubes: A first principle study