How smart retailers turn customer data into gold dust