Black silicon solar cell: analysis optimization and evolution towards a thinner and flexible future