A coupled thermo-electro-mechanical model for fracture in solar cells