A statistical noise-tolerance analysis and test structure for logic families