Ab-initio computations of CaV2S4 and CaMn2S4 spinels for spintronics and energy storage system applications