Generation rate of 2D excitons in quantum wells