Optimization of factors affecting hexavalent chromium removal from simulated electroplating wastewater by synthesized magnetite nanoparticles