A major extinction occurred at the end of the paleozoic era (the most recent period in this era.) what types of organisms were most affected by this massive extinction?