Kinematic numerators and a double-copy formula for N=4 super-Yang-Mills residues