Oscillatory shear flow measurements on liquid crystalline phases with hexagonal and cubic structures