Shifting trends, segmented trends, and infrequent permanent shocks