Derivation of a rod theory for biphase materials with dislocations at the interface