Electronic structure and magnetic properties of Fe‐rich ternary compounds: YFe10V2 and YFe10Cr2