The Building Blocks of Electronics: Principles and Applications