Jobs are being lost and rural economies are suffering as farmers in some parts of the U.S. switch from growing cotton to corn.