Optimization of photonics for corrugated thin-film solar cells