First Principles Study of Mechanical Properties and Electronic Structures of Vanadium‐Doped TiC and TiN