Structural analysis of nanoparticulate carriers for encapsulation of macromolecular drugs