A Hodrick–Prescott filter with automatically selected breaks | Synapse