Influence of the wettability on the electrical response of microporous systems