Fundamentals and Applications of Digital Logic Circuits