A digital approach for real time high-rate high-resolution radiation measurements