Electronic structures of and composition gaps among the ternary carbides Ti 2 M C