In situ multi-layer functionally graded materials by Electromagnetic Separation method