Carrier generation and recombination