Structure of binary titaniumcarbon ions: A theoretical study of TiC2+ and Ti2C4+