a capacitor is a device that stores electrical energy by accumulating electric charges on two closely spaced surfaces that are insulated from each other