New Jersey’s economy, fueled by high incomes, investment growth and a competitive real estate market, ranks the state among the wealthiest in the U.S.