Multifunctional lab-on-a-chip microfluidic platform for the fabrication of nanoparticles