Technology Ladders and R&D in Dynamic Cournot Markets