Diagnosis in farming systems research and extension