Self-healing capacitors and magnetic inductive capacitors