Generate text that is semantically similar to this text: because the gap creates a difference in electrical states
a battery uses a chemical reaction to maintain different electrical states at the terminals