The structural, magnetic, electronic, and mechanical properties of orthogonal/hexagonal MC (M = Fe and Cr) carbides from first-principles calculations