Making polymeric micro- and nanoparticles of complex shapes