Ab-initio investigations of structural, optoelectronic and thermoelectric properties of AIn2Se4 (A = Zn, Cd) spinels