Relationship between fracture and friction for brittle rocks