Explain the concept of electrical impedance.
Electrical impedance is a measure of the opposition that a circuit presents to the passage of a current when a voltage is applied. It generalizes the concept of resistance to AC circuits, and includes both resistance and reactance (capacitive and inductive effects).