A&P to lay off 8,500 in New Jersey