Genetic diversity of populations in three forest communities with different succession stages