Theory of magnetically induced anions