Interplay of martensitic phase transformation and plastic slip in polycrystals