A.C. Moore to be acquired for $40.8 million