Microelectronics for microorganisms : measurement instrumentation and optimization algorithms for electroactive biofilms