Hydrophobic properties of a wavy rough substrate