R&D for Quality Improvement and Network Externalities