Design Parameters for Superhydrophobicity and Superoleophobicity