Online Energy and Emissions System Management Helps Refineries and Petrochemicals Minimize Costs