KVL in the frequency domain