Using Dynamic Optimization for Integrated Environmental Management: An Application to Solvent Waste Disposal