Homogenization of Electromagnetic Force Field During Casting of Functionally Graded Composites