how to diagnose electrical problems