New Jersey formally takes over Atlantic City after decade of economic hardship