Formulation of nanoparticles encapsulating hydrophilic molecules following their ionic complexation