Paleoecology, concepts and applications