Power supply, regulation, or energy storage system