Optimization of Gas Transmission Networks under Energetic and Environmental Considerations