Rationalizing the Band Gap Tunability of Semiconductors via Electronic Structure Calculations