Performance study of a microfluidic reactor for cogeneration of chemicals and electricity