Incorporating in situ measurements of energy into a designed method of detection of radiation induced degradation in embedded systems