Careful analysis of the performance optimization of electromagnetic flow meters in paint production