Social, economic and environmental metrics for the sustainable optimization of chemical and petroleum processes