Micromechanical determination of two-phase plasticity