Fundamentals of electrical engineering