Troubleshooting electrical systems