Toward Highly Efficient Nanostructured Solar Cells Using Concurrent Electrical and Optical Design