China accounts for nearly half global patent filings