First-principles study on electronic structure, magnetic and dielectric properties of Cr-doped Fe3C