Email Record: Finite-key security analysis of quantum key distribution with imperfect light sources