Coupled modeling of evolution of impurity/defect distribution and cell performance