fundamentals of digital circuits second edition