Foreign Competition and Domestic Innovation: Evidence from US Patents