Theory of the effective properties of ideally plastic composite materials