Costs and benefits in technological decision making under variable conditions: examples from the late Pleistocene in southern Africa