Scientific application and optimization of electromagnetic flow meters in electroplating wastewater treatment