Maximizing power production in a stack of microbial fuel cells using multiunit optimization method