Charming Shoppes swings to loss in Q2