Semiparametric shift estimation based on the cumulated periodogram for non-regular functions