Introduction to switching circuit theory