An earthquake has rattled thousands in the Pacific Northwest, including in the major city of Seattle.