Marine diversity through the Phanerozoic: problems and prospects