First-principles calculation of structural, mechanical, magnetic and thermodynamic properties for γ-M23C6 (M = Fe, Cr) compounds