Photonic defect modes of cholesteric liquid crystal with spatially varying pitch