Impact broadening of the 4p-7s transitions in potassium by helium and argon