Treatment of dilute soluble and colloidal wastewater using an anaerobic baffled reactor: influence of hydraulic retention time