A segmented Nelson and Siegel model for the term structure of interest rates Tesis