Characterization of acid phase anaerobic digestion of municipal sludges to improve biological nutrient removal processes