States and cities with the biggest gains and sharpest losses in median household income