The Adaptive Significance of Sequential Hermaphroditism in Animals