automatically find surface of sample instead of requiring it to be
defined as physical surface