A supply chain model for deteriorating items with time discounting under trade credit and quantity discounts