Measuring inequality with grouped data: perspectives from historical records.