Production of polymeric micro- and nanostructures with tunable properties as pharmaceutical delivery systems