Density functional study of the structure, thermodynamics and electronic properties of CdGeAs2