How is the transfer price of an intermediate product determined when (a) there is no external market for the intermediate product, (b) a perfectly competitive external market for the intermediate product exists, and (c) an imperfectly competitive external market for the intermediate product exists.