Friction law for atomic-scale contact assisted by atomistic simulations