Microtextured Light-Management Foils and Their Optimization for Planar Organic and Perovskite Solar Cells