The electronic structure and magnetism of CaFeAs2: First principles calculations