High-spin isomers in W and Os nuclei; Competition betweenK-quantization and triaxiality