Electrical resistivity of granite in frictional sliding: Application to earthquake prediction