Digital Electronics: Principles and Applications