Fundamentals of electronic devices