Process troubleshooting in petroleum refineries