Characterization of sandstone by electrical spectroscopy for stratigraphical and hydrogeological investigations