On the Lax pairs of the continuous and discrete sixth Painlevé equations