A magnetic sensor to measure wear in centrifugal pumps