Basics on Diodes and related problems (Sedra Smith)