Homotopy types of gauge groups of principal bundles with certain non-simply connected structure groups