A&P to emerge from bankruptcy in 2012