Mechanical models and numerical simulations in nanomechanics: A review across the scales