Understanding Ti intermediate-band formation in partially inverse thiospinel MgIn2S4 through many-body approaches