Optimized bi-material layouts for energy dissipating composites under finite deformations