Effects of electromagnetic field on physical behaviors during low-frequency electromagnetic casting of Mg alloy AZ31