GET: A generic electronics system for TPCs and nuclear physics instrumentation