A Zynq-based flexible ADC architecture combining real-time data streaming and transient recording