A Generic Framework For Delineating The Basic Units Of Social-Environmental Systems: Ensuring User Control And Reproducibility