Atomistic Simulations Of Semiconductor And Metallic Nanoparticles