Effects of complex life cycles on genetic diversity: cyclical parthenogenesis