NaNet: A configurable NIC bridging the gap between HPC and real-time HEP GPU computing