Two landmark exhibitions reveal how Europe’s big institutions are rethinking their collections for the 21st century