Real-time monitoring of microfluidic lithography