Planning the firm's financing mix: Optimal control modelling and computation