Control of Impurity Microstructure Formed during a Nonequilibrium Phase Transition in a Diluted Ternary Alloy