J.C. Penney to permanently shut about 242 stores as part of bankruptcy plan