A farm-scale pilot plant for biohydrogen and biomethane production by two-stage fermentation