Reducing Environmental Impacts of The Petroleum Refining Operations: Studies Related to Water Treatment and Carbon Dioxide Emissions Management