Survival under stress: socioecological perspectives on farmers' innovations and risk adjustments