Impact of conductive minerals on measurements of electrical resistivity