Effect of reaction mode on biohydrogen production and its microbial diversity