AC and DC guaranteed power supply systems and energy storage