Wild band edges: The role of bandgap grading and band-edge fluctuations in high-efficiency chalcogenide devices