Contact Angle Hysteresis: I. Study of an Idealized Rough Surface