S. Korea finalizes plan to cut carbon emissions by 40% by 2030