Real-time pulse-shape discrimination and beta-gamma coincidence detection in field-programmable gate array