Solid-state capacitor for voltage control of magnetism formed on a flexible substrate