Stage-structured cycles promote genetic diversity in a predator–prey system of Daphnia and algae