Edge localized mode control with an edge resonant magnetic perturbation