Analyzing opto-electronic and transport characteristics of ZnSc2Se4 and CdSc2Se4 spinels for opto-electronic and energy storage devices