Basics of NOT gate and its application in an 8-bit one's complement circuit