Adsorption and electrochemical behavior investigation of methyl blue onto magnetic nickel-magnesium ferrites prepared via the rapid combustion process