A self-consistent mechanics of composite materials