Earth had shorter days when dinosaurs lived, ancient shells show