SyNAPSE: Synthesizing Networking Accelerators using Programmable Switching Equipment