Understanding Combinational Electronic Circuits: Principles and Applications