E-Graphs as Circuits, and Optimal Extraction via Treewidth | Synapse