Submillimeter observations of CO in the W3 core