R&D investment and internal finance: the cash flow effect