Modeling and testing the mechanical strength of solar cells