Bandgap losses in solar cells