Observation of magnetic-field-enhanced excitation and ionization in the plume of KrF-laser-ablated magnesium