Rock friction and earthquake prediction