Production of foldable solar panels