A two-phase production inventory model for imperfect quality items with multivariate demand, upstream and downstream credit period offers under a carbon tax, and green subsidy | Synapse