Costco, Aldi and other rivals have changed grocery shopping, creating new challenges for regional chains.