Fabrication of microfluidic devices containing patterned microwell arrays