Derivation of a rod theory for multiphase materials