First-principles studies of the electronic and elastic properties of Ti2GeC