Quantum-defect studies of transitions in the diffuse spectral series of the potassium isoelectronic sequence