Lattice strain partitioning in a two-phase alloy and its redistribution upon yielding