Optimally robust influence curves for regression and scale