Bandgap of thin film solar cells