Probing mechanical properties of carbon-based nanomaterials and nanodevices via molecular dynamics simulations and continuum mechanics modelling