Robustness measures and level set methods