Charge transfer of doubly charged and trebly charged ions with atomic hydrogen at thermal energies