Electrical resistivity changes in rocks during frictional sliding and fracture