Computer simulations on mechanical and electrical properties of nanoscale materials