Farmers respond to multiple factors when making production decisions that affect environmental quality