Measurement of the I=1/2 Kπ S-wave amplitude from Dalitz plot analyses of ηc→KK¯π in two-photon interactions