Ionization and edge-density gradient effects on MARFE instabilities in tokamak plasmas