Carbon- and silicon-capped silicon carbide nanotubes: An ab initio study