Elastic-plastic homogenization for layered composites