A theory of endogenous technical progress: Dynamic Böhm-Bawerk effect and optimal R & D Policy