Improvement of biohydrogen production and intensification of biogas formation