Determination of optimum operating conditions of an acidification reactor treating a chemical synthesis-based pharmaceutical wastewater