Transforming subsurface infrastructures into renewable energy sources: concepts, design and operation