Text this: Electronic confinement for tuning optical properties in beta-InxTMzSy (TM = V, Fe, and Ti): Prospects for intermediate-band materials