On the Estimation of Structural Change: A Generalization of the Random Coefficients Regression Model