Integrated front–rear-grid optimization of free-form solar cells