AirwaySegmenter::Execute() returns automatically determined threshold as output parameter

This is needed for applications that need to know what the
automatically determined threshold is. This also enabled moving the
surface writer out of the Execute() method where it didn't really
belong.