Legal Shareholder Protection and Corporate R&D Investment