Trigger and aperture of the surface detector array of the Pierre Auger Observatory