The H II region-molecular cloud complex W3 - Observations of CO, CS, and HCN