Combined impact of heterogeneous lifetime and gettering on solar cell performance