Design of nanoparticles for vaccine delivery