Distributed Optimization: Analysis & Synthesis via Circuits