Averaging of laterally inhomogeneous lifetimes for one-dimensional modeling of solar cells