Structure and stability of biodegradable polymer nanoparticles in electrolyte solution