Mass extinctions over the last 500 myr: an astronomical cause?