Growth and innovation in the presence of knowledge and R&D accumulation dynamics