Atomic data for M1 and E2 emission lines in the potassium isoelectronic sequence