Automated real-time feeding control for microbial electrolysis cell-anaerobic digestion systems using finite state machine