Optimization on mechanical properties of transition metal carbides: A combined experimental and theoretical study