Self-assembly of patchy colloidal rods into photonic crystals robust to stacking faults