Total ionizing dose and single event upset testing of flash based field programmable gate arrays of Total ionizing dose and single event upset testing of flash based field programmable gate arrays