Optimization of periodic nanostructures for enhanced light-trapping in ultra-thin photovoltaics.