Testing and Estimating Structural Breaks in Time Series and Panel Data in Stata (preprint)