Electrical resistivity measurements of rocks under confining pressure condition