Electronic devices and amplifier circuits with MATLAB applications