Three-dimensional corrugation of the plasma edge when magnetic perturbations are applied for edge-localized mode control in MAST