Modeling of depletion width variation over time in thin film photovoltaics