Superlattice with graded effective bandgap