A theoretical and numerical stability analysis for composite microstructures by using homogenization theory