Analytical tool to analyze soft error rate in hardware circuits