How do the spores and alternation of generations enable the reproduction of nonvascular plants and seedless vascular plants?