Cost reduction, competitive pressure and firms' optimal R&D strategies in a duopolistic industry