Topology optimization of dissipative metamaterials at finite strains based on nonlinear homogenization