Simulations Of Dry Friction Between Rough Surfaces And Corresponding Nonlinear Problems At Nano And Microscales