Why have flowering plants been so successful in surviving in a variety of habitats?