Redundant apodization for direct imaging of exoplanets. I. Robustness to primary mirror segmentation-induced errors outside the segment diffraction limit