Ab initio characterization of magnetic CuFeS 2