A capacitor consists of two metal surfaces separated by an electrical insulator with no electrically conductive path through it. Why does a current flow in a resistor-capacitor circuit when the switch is closed?