Ailing Thai king undergoes kidney dialysis