Multiperiod supply chain network dynamics under investment in sustainability, externality cost, and consumers’ willingness to pay