The electrical signature of rock samples exposed to hydrostatic and triaxial pressures