Investigation of the influences of ternary Mg addition on the solidification microstructure and mechanical properties of as-cast Al–10Si alloys