A Method for Producing Protein Nanoparticles with Applications in Vaccines