Influence of electromagnetic field on the morphology of graphite in structure of cast iron