Theoretical investigation of the optical spectrum and gyromagnetic g factor for GaAs : Co2+