Development of a leakage flux measurement system for condition monitoring of electrical drives