Optimization of photochemical machining process for fabrication of microchannels with obstacles