Residual partial sum limit process for regression models with applications to detecting parameter changes at unknown times