On the variation of energy gaps in semiconducting alloy systems