Farmers adapt as the city moves into the country: study focuses on farms and environment