Size-scale effects on the friction coefficient: from weak faults at the planetary scale to superlubricity at the nanoscale