Porous polymers by emulsion templating