Environmental controls on planktonic foraminiferal diversity in ancient and modern oceans