Quality-by-design approach for formulation development of drug nanoparticles