Feedback stabilization of nonaxisymmetric resistive wall modes in tokamaks. I. Electromagnetic model | Synapse