Why does a capacitor block DC but pass AC?