Compressed energy storage and grid connection