Threshold photoelectron studies of Kr and Xe