Designing metal nanoparticles for catalysis