Geotechnical basis for underground energy storage in hard rock