Microfluidic cooling for detectors and electronics