A new CAD tool for Single Event Transient Analysis and Mitigation on Flash-based FPGAs