Intellectual Property and Foreign Investment