A distributed data acquisition system for nuclear detectors