The gap between the richest and poorest American communities has widened since the Great Recession ended, and distressed areas are faring worse just as the recovery is gaining traction across much of the country.