Kroger shifts e-commerce strategy, closing automated warehouses to boost profits and compete with Walmart and Amazon.