Formation of polymer-nanoparticle capsules with tuneable morphologies by solvent extraction