Storage of energy in underground caverns