Computational approaches to the study of the electronic properties, structure and functionalization of metal nanoparticles