Principle of chemical energy storage and power generation