Optimizing inventory and marketing policy for non-instantaneous deteriorating items with generalized type deterioration and holding cost rates