A Review of the Processes, Parameters, and Optimization of Anaerobic Digestion