Microfluidics for particle synthesis from photocrosslinkable materials