Climate risk adaptation by smallholder farmers: the roles of trees and agroforestry