Optimally robust estimation