Electric/magnetic duality and RG flows in AdS4/CFT3