Power quality and motor analyser