Mathematical analytic techniques for determining the optimal ordering strategy for the retailer under the permitted trade-credit policy of two levels in a supply chain system